package com.xxzuibang.day2;

public class Test6 {
    public static void main(String[] args) {
        char c1='9';
        char c2='J';
        char c3='a';
        char c4=' ';
        char c5='@';
        char c6=97;
        boolean b1=true;
        boolean b2=false;
        System.out.println(c1);
        System.out.println(c2);
        System.out.println((int)c3);//97，可以转为数字
        System.out.println(c4);
        System.out.println(c5);
        System.out.println(b1);
        System.out.println(b2);
        System.out.println(c6);
        //char是可以运算的
        System.out.println('a'+10);//107=97+10
        char c7='b'+1;
        System.out.println((int) c7);//99
        System.out.println(c7);//c是99对应的字符
        System.out.println((int)'a');//97
        char c8='a'-32;
        System.out.println('a'-32);//65
        System.out.println(c8);//A

    }
}
